package com.boang.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * @TableName owner
 */
@TableName(value = "owner")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Owner {
    @TableId(value = "owner_id", type = IdType.AUTO)
    private Integer id;

    private Long ownerId;

    private String name;

    private String buildingNumber;

    private String contact;

    private String idNumber;

    private String memberName;

    private String memberPhone;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    private Date gmtCreate;
    @TableField(value = "gmt_modified", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtModified;
    @TableLogic
    private Integer isDeleted;
    @Setter
    @TableField(exist = false)
    private Integer houseCount; // 或使用 Long 类型

}